<%@page import="utilities.Uporabnik"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><%@page
	language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html>
<head>
<title>Urejanje</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="StyleSheet" href="includes/izgled.css" type="text/css">
</head>
<body>

<div id="container">
	<%
	session.setAttribute("stran", "_glava");
	 %>
	<jsp:include page="includes/glava.jsp" />

	<div id="leftColumnFrame">
		<div id="leftColumnContent">
			<jsp:include page="includes/navigacija.jsp" />
		</div>
	</div>

	<div id="rightColumnFrame">
		<div id="rightColumnContent">
		<jsp:include page="includes/prijavnaVrstica.jsp" />
		<%
			Uporabnik up = (Uporabnik)session.getAttribute("uporabnik");
			
			if(session.getAttribute("errorReport") == null)
				session.setAttribute("errorReport", "");
			
	 	%>
	 	
	 	<form action="urejanjeProfilaServlet" method="post">
			<p style="color:red"><%= session.getAttribute("errorReport") %></p>
			<p><span class="vrsticaLevo"><label>Ime: </label></span><input type="text" id="ime" name="ime" size="20" value="<%= up.getIme()%>" /></p>
			<p><span class="vrsticaLevo"><label>Priimek: </label></span><input type="text" id="priimek" name="priimek" size="20" value="<%= up.getPriimek()%>" /></p>
			<p><span class="vrsticaLevo"><label>Spol: </label></span>
			Moški <input type="radio" name="spol" value="moski" <%= session.getAttribute("radio1") %> /><br />
			<span class="vrsticaLevo"><label>&nbsp;</label></span>
			Ženski <input type="radio" name="spol" value="zenski" <%= session.getAttribute("radio2") %> /></p>
			<p><span class="vrsticaLevo"><label>Naslov: </label></span><input type="text" id="naslov" name="naslov" size="20" value="<%= up.getNaslov() %>" /></p>
			<p><span class="vrsticaLevo"><label>Leto rojstva: </label></span><input type="text" id="letor" name="letor" size="20" value="<%= up.getLetoR()%>" /></p>
			<p><span class="vrsticaLevo"><label>Leto diplomiranja: </label></span><input type="text" id="letod" name="letod" size="20" value="<%= up.getLetoD()%>" /></p>
			<p><span class="vrsticaLevo"><label>Vrsta študija: </label></span>
			<select id="vrstas" name="vrstas">
				<option value="visokosolski" <%= up.getVrstaS1() %> >Visokošolski</option>
				<option value="univerzitetni" <%= up.getVrstaS2() %> >Univerzitetni</option>
				<option value="isrm" <%= up.getVrstaS3() %> >IŠRM</option>
			</select>
			</p>
			<p><span class="vrsticaLevo"><label>Stopnja študija: </label></span>
			<select id="stopnjas" name="stopnjas">
				<option value="1" <%= up.getStopnjaS1() %> >Dodiplomski</option>
				<option value="2" <%= up.getStopnjaS2() %> >Magisterij</option>
				<option value="3" <%= up.getStopnjaS3() %> >Doktorat</option>
			</select>
			</p>
			<p><span class="vrsticaLevo"><label>Študijska smer: </label></span>
			<select id="studijskas" name="studijskas">
				<option value="racininf" <%= up.getSmerS1() %> >Računalništvo in informatika</option>
				<option value="racinmat" <%= up.getSmerS2() %> >Računalništvo in matematika</option>
			</select>
			</p>
			<p><span class="vrsticaLevo"><label>Email: </label></span><input type="text" id="email" name="email" size="20" value="<%= up.getEmail() %>" /></p>
			<p><span class="vrsticaLevo"><label>Geslo: </label></span><input type="password" id="geslo" name="geslo" size="20" /></p>
			<p><span class="vrsticaLevo"><label>Potrditev gesla: </label></span><input type="password" id="pgeslo" name="pgeslo" size="20" /></p>
			<input type="submit" name="urejanje" value="Urejanje" />
			<br />
			<br />
		</form>
		<form action="urejanjeProfilaServlet" method="get">
			<input type="submit" name="tisk" value="Izvozi za tisk" /> 
			<input type="submit" name="mobilno" value="Izvozi za mobilne naprave" /> 
			<input type="submit" name="excel" value="Izvozi v Excel" />
		</form>
		</div>
	</div>

	<div id="footer">
	</div>
</div>
</body>
</html>